﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AOP.Rougamo
{
    /// <summary>
    /// 被调度类
    /// </summary>
    public class Dispatched
    {
        /// <summary>
        /// 方法A
        /// </summary>
        /// 
        [TestA]
        public static void TestA()
        {
            Console.WriteLine("我被调度了，我是流程A");
            throw new Exception("TestA报错了");
        }


        /// <summary>
        /// 方法B
        /// </summary>
        public static void TestB()
        {
            Console.WriteLine("我被调度了，我是流程B");
        }



    }
}
